[INFO] cloning repository https://github.com/fijk/png-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fijk/png-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffijk%2Fpng-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffijk%2Fpng-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 39d416b427ba5f9b4b8f447b46851ff20f131615
[INFO] checking fijk/png-rs against master#af3c6e733a40e671550e0f0f5aeecaa13772ba56 for pr-74989
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffijk%2Fpng-rs" "/workspace/builds/worker-2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/fijk/png-rs on toolchain af3c6e733a40e671550e0f0f5aeecaa13772ba56
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/fijk/png-rs
[INFO] finished tweaking git repo https://github.com/fijk/png-rs
[INFO] tweaked toml for git repo https://github.com/fijk/png-rs written to /workspace/builds/worker-2/source/Cargo.toml
[INFO] crate git repo https://github.com/fijk/png-rs already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 0f39333851a0bcd29e5b71fd7593815cc7876d0bb99b0eea6316b5cf44603560
[INFO] running `Command { std: "docker" "start" "-a" "0f39333851a0bcd29e5b71fd7593815cc7876d0bb99b0eea6316b5cf44603560", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0f39333851a0bcd29e5b71fd7593815cc7876d0bb99b0eea6316b5cf44603560", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0f39333851a0bcd29e5b71fd7593815cc7876d0bb99b0eea6316b5cf44603560", kill_on_drop: false }`
[INFO] [stdout] 0f39333851a0bcd29e5b71fd7593815cc7876d0bb99b0eea6316b5cf44603560
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] c5e43c9e1ace5c2a1685dccfef52e7d354a1a48fca4ac7ea790dd1051bc0e746
[INFO] running `Command { std: "docker" "start" "-a" "c5e43c9e1ace5c2a1685dccfef52e7d354a1a48fca4ac7ea790dd1051bc0e746", kill_on_drop: false }`
[INFO] [stderr]     Checking png-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::iter::FromIterator`
[INFO] [stdout]    --> src/lib.rs:140:9
[INFO] [stdout]     |
[INFO] [stdout] 140 |                 use std::iter::FromIterator;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:198:23
[INFO] [stdout]     |
[INFO] [stdout] 198 |                 self.data.len() * 3 as u32
[INFO] [stdout]     |                                   ^^^^^^^^ expected `usize`, found `u32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:198:5
[INFO] [stdout]     |
[INFO] [stdout] 197 |             fn length(&self) -> u32 {
[INFO] [stdout]     |                                 --- expected `u32` because of return type
[INFO] [stdout] 198 |                 self.data.len() * 3 as u32
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `usize`
[INFO] [stdout]     |
[INFO] [stdout] help: you can convert an `usize` to `u32` and panic if the converted value wouldn't fit
[INFO] [stdout]     |
[INFO] [stdout] 198 |                 (self.data.len() * 3 as u32).try_into().unwrap()
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::iter::FromIterator`
[INFO] [stdout]    --> src/lib.rs:140:9
[INFO] [stdout]     |
[INFO] [stdout] 140 |                 use std::iter::FromIterator;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:198:23
[INFO] [stdout]     |
[INFO] [stdout] 198 |                 self.data.len() * 3 as u32
[INFO] [stdout]     |                                   ^^^^^^^^ expected `usize`, found `u32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:198:5
[INFO] [stdout]     |
[INFO] [stdout] 197 |             fn length(&self) -> u32 {
[INFO] [stdout]     |                                 --- expected `u32` because of return type
[INFO] [stdout] 198 |                 self.data.len() * 3 as u32
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `usize`
[INFO] [stdout]     |
[INFO] [stdout] help: you can convert an `usize` to `u32` and panic if the converted value wouldn't fit
[INFO] [stdout]     |
[INFO] [stdout] 198 |                 (self.data.len() * 3 as u32).try_into().unwrap()
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: cannot multiply `u32` to `usize`
[INFO] [stdout]    --> src/lib.rs:198:21
[INFO] [stdout]     |
[INFO] [stdout] 198 |                 self.data.len() * 3 as u32
[INFO] [stdout]     |                                 ^ no implementation for `usize * u32`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Mul<u32>` is not implemented for `usize`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:201:30
[INFO] [stdout]     |
[INFO] [stdout] 201 |             fn from(data: Vec<u8>) -> Self {
[INFO] [stdout]     |                ----                   ^^^^ expected struct `PaletteChunk`, found `()`
[INFO] [stdout]     |                |
[INFO] [stdout]     |                implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `png-rs`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0277]: cannot multiply `u32` to `usize`
[INFO] [stdout]    --> src/lib.rs:198:21
[INFO] [stdout]     |
[INFO] [stdout] 198 |                 self.data.len() * 3 as u32
[INFO] [stdout]     |                                 ^ no implementation for `usize * u32`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `Mul<u32>` is not implemented for `usize`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/lib.rs:201:30
[INFO] [stdout]     |
[INFO] [stdout] 201 |             fn from(data: Vec<u8>) -> Self {
[INFO] [stdout]     |                ----                   ^^^^ expected struct `PaletteChunk`, found `()`
[INFO] [stdout]     |                |
[INFO] [stdout]     |                implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "c5e43c9e1ace5c2a1685dccfef52e7d354a1a48fca4ac7ea790dd1051bc0e746", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c5e43c9e1ace5c2a1685dccfef52e7d354a1a48fca4ac7ea790dd1051bc0e746", kill_on_drop: false }`
[INFO] [stdout] c5e43c9e1ace5c2a1685dccfef52e7d354a1a48fca4ac7ea790dd1051bc0e746
